package observer;

/**
 * 事件处理
 */
public abstract class Events<T> {
    long time;
    String str;
    // 定义事件源对象
    public T source;
    public T getSource(){return source;}

    @Override
    public String toString() {
        return "Events{" +
                "time=" + time +
                ", str='" + str + '\'' +
                '}';
    }
}
